package com.seata.providerb.service;


import com.seata.interfcae.domain.DemoSecond;
import com.seata.interfcae.service.GameSecondService;
import com.seata.providerb.dao.DemoSecondMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class GameSecondServiceImpl implements GameSecondService {

    @Autowired
    private DemoSecondMapper demoSecondMapper;

    @Override
    public void game(DemoSecond demoSecond) {
        demoSecondMapper.insert(demoSecond);
    }

    @Override
    public void gameFail(DemoSecond demoFirst) {
        int a = 1/0;
    }

}
